package com.qf.boot2302.vo;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class HelloVo {
    @NotNull
    private Integer id;

    //    @NotNull  // 需要该参数不能为null
    @NotEmpty   // 不可以为空串
    @Size(min = 5,max = 100)
    private String name;

    @Email
    private String email;
}
